package com.ffyc.cms.service;

import com.ffyc.cms.dao.CommentDao;
import com.ffyc.cms.model.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentService {
    @Autowired
    CommentDao commentDao;

    public List<Comment> getcommentlist(Integer state) {
        return commentDao.getcommentlist(state);
    }

    public void topass(Integer id, Integer state) {
        commentDao.topass(id,state);
    }

    public Comment getcommentById(Integer id) {
        return commentDao.getcommentById(id);
    }
}